package com.lottery.common.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableField;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableName;
    import com.lottery.common.model.BaseModel;
    import java.time.LocalDateTime;
    import java.util.Date;

    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 消息记录
    * </p>
*
* @author jobob
* @since 2019-09-23
*/
    @Data
    @Accessors(chain = true)
    @TableName("tb_message_info")
    @ApiModel(value="TbMessageInfo对象", description="消息记录")
    public class MessageInfo {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long memberId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "是否已读 0 已读 1未读")
    private Integer isRead;

    @ApiModelProperty(value = "消息内容")
    private String message;

    @ApiModelProperty(value = "是否置顶")
    private Integer isTop;

    @ApiModelProperty(value = "置顶结束时间")
    private Date isTopEndTime;

    @ApiModelProperty(value = "消息类型  1系统消息 2待办事项")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "0 已删除")
    private Integer isDel;

    @ApiModelProperty(value = "是否跳转")
    private Integer isSkip;

    @ApiModelProperty(value = "跳转url")
    private String skipUrl;

    @ApiModelProperty(value = "跳转类型  1 url 2原生")
    private Integer skipType;

    private String typeValue;

    @TableField(select=false)
    private String msgTime;

    public MessageInfo() {
    }

    public MessageInfo(Long memberId, String message, Integer type, String remark, Integer isSkip,String typeValue) {
        this.memberId = memberId;
        this.message = message;
        this.type = type;
        this.remark = remark;
        this.isSkip = isSkip;
        this.typeValue = typeValue;
    }
}
